package com.xw.service.sysconfig;

import com.aliyuncs.exceptions.ClientException;
import com.xw.model.SysVerificationCode;
import com.xw.service.common.BaseService;

import java.text.ParseException;
import java.util.Map;

public interface VerificationCodeService extends BaseService<SysVerificationCode> {

    /**
     * 根据手机号查询当前发送短信的条数
     * @param today
     * @param phone
     * @return
     */
    Integer findCountByDateAndPhone(String today, String phone);

    Map sendVerificationCode(String phone) throws ParseException, ClientException;

    Map checkVerificationCode(String phone, String vcId, String codeNum);
}
